package com.dsideal.cloud.cas.client.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author suny
 * @date 2018/11/27
 */
@Component
@ConfigurationProperties(prefix = "security")
@Data
public class SecurityConfiguration {
    private List<String> permitPath;

    public String[] permitPath() {
        return permitPath.toArray(new String[permitPath.size()]);
    }
}
